package com.cmcc.passenger.ui.profile

import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelProviders
import com.alibaba.android.arouter.facade.annotation.Route

import com.cmcc.passenger.R
import com.cmcc.passenger.config.PassPath
import com.cmcc.passenger.databinding.ActivityPassengerMsgdetailBinding


import com.cmcc.passenger.databinding.ActivityPassengerMsglistBinding
import com.cmcc.passenger.ui.base.BasicActivity
import com.cmcc.passenger.ui.fragment.AppProgressDialog
import com.cmcc.passenger.ui.profile.viewmodel.ProfileViewModel

@Route(path = PassPath.MSG_DETAIL)
class PassengerMsgDetailActivity : BasicActivity() {
    private lateinit var viewModel: ProfileViewModel
    private lateinit var binding: ActivityPassengerMsgdetailBinding

    private var progressDialog: AppProgressDialog? = null


    /**
     * 初始化
     */
    override fun initialize(savedInstanceState: Bundle?) {
        binding = DataBindingUtil.setContentView(this, R.layout.activity_passenger_msgdetail)

        progressDialog = AppProgressDialog(this)
        viewModel = ViewModelProviders.of(this).get(ProfileViewModel::class.java)


        binding.appbar.title.text = getString(R.string.sys_msg_detail)

        val content = intent.getStringExtra("content")
        binding.tvContent.text = content

        binding.appbar.toolbar.setNavigationOnClickListener { finish() }


    }



}